package com.dolphin.apidriver.service;

import com.dolphin.apidriver.remote.ServiceDriverUserClient;
import com.dolphin.common.dto.DriverUser;
import com.dolphin.common.dto.DriverUserWorkStatus;
import com.dolphin.common.dto.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {
    @Autowired
    private ServiceDriverUserClient serviceDriverUserClient;

    public ResponseResult updateUser(DriverUser driverUser){
        return serviceDriverUserClient.updateUser(driverUser);
    }

    public ResponseResult changeWorkStatus(DriverUserWorkStatus driverUserWorkStatus) {
        return serviceDriverUserClient.changeWorkStatus(driverUserWorkStatus);
    }

    public ResponseResult getDriverCarBindingRelationship(String driverPhone) {
//        LambdaQueryWrapper<DriverUser> queryWrapper = new LambdaQueryWrapper<>();
        return serviceDriverUserClient.getDriverCarBindingRelationship(driverPhone);
    }
}
